package cn.tedu._07springaop.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import javax.naming.Context;

/**
 * 测试类，创建IoC容器，新建SpringBean对象
 */
public class CalculatorTest {
    public static void main(String[] args) {
        ApplicationContext context =
                new AnnotationConfigApplicationContext("cn.tedu._07springaop");
        CalculatorImpl bean = context.getBean(CalculatorImpl.class);
        bean.add(3, 5);


    }



}
